package com.bwie.auth.config;//package com.bw.config;
//
//import com.bw.job.MyJob;
//import com.bw.job.MyJob2;
//import org.quartz.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @BelongsProject: demo02
// * @BelongsPackage: com.bw.config
// * @Author: zhupengfei
// * @CreateTime: 2022-12-22  14:59
// */
////把当前类定义为  一个配置文件类
//@Configuration
//public class QuartzConfig2 {
//    @Bean
//    public JobDetail downloadDetail2() {
//        return JobBuilder.newJob(MyJob2.class) //具体任务类
//                .withIdentity("downloadJobDetail2")
//                .usingJobData("job_download","download movie")
//                .storeDurably()
//                .build();
//    }
//    //构建 Trigger 及 Scheduler
//    @Bean
//    public Trigger downloadTrigger2() {
//        return TriggerBuilder.newTrigger()
//                .forJob(downloadDetail2())  //关联上面的 jobDetail
//                .withIdentity("downloadTrigger2")
//                .usingJobData("trigger_download","download")
//                //cron 表达式设置每隔 5 秒执行一次
//                .withSchedule(CronScheduleBuilder.cronSchedule("*/30 * * * * ?"))
//                .build();
//    }
//
//}
